<?php
class Custom_View_Helper_Trans extends Zend_View_Helper_Abstract
{
    public function trans()
    {
        $arguments = func_get_args();
        if (!isset($arguments[0])) {
            throw new Custom_View_Exception('Arguments define mistake!');
        }

        $string = $this->view->translate($arguments[0]);
        unset ($arguments[0]);
        
        return vsprintf($string ,$arguments);
    }
}